Skip to content

fix: prevent editable base branch dropdown from being clipped#340

Merged
ping-maxwell merged 2 commits intobetter-auth:mainfrom
AbhiVarde:fix/editable-base-branch-dropdown-clipping
Apr 7, 2026
Merged

fix: prevent editable base branch dropdown from being clipped#340
ping-maxwell merged 2 commits intobetter-auth:mainfrom
AbhiVarde:fix/editable-base-branch-dropdown-clipping

Conversation

@AbhiVarde
Copy link
Copy Markdown
Contributor

@AbhiVarde AbhiVarde commented Apr 5, 2026

Problem

The base branch dropdown was clipped by a parent scroll container on the PR detail page, causing it to appear cut off when opened.

Solution

Changed dropdown from absolute to fixed positioning using triggerRef to calculate the exact viewport position, so it always renders above parent scroll containers.

Files Changed

  • apps/web/src/components/pr/editable-base-branch.tsx

Screenshots

Before After

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 5, 2026

@AbhiVarde is attempting to deploy a commit to the better-auth Team on Vercel.

A member of the Team first needs to authorize it.

@ping-maxwell ping-maxwell merged commit d87ae68 into better-auth:main Apr 7, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants